package gui.components.map.objects;

import java.awt.Polygon;
import java.awt.Shape;

public class objWaypoint extends objBasic{

	private static final long serialVersionUID = 1L;

	// Generate object
	public void GenerateShape()
	{
		Polygon _waypoint = new Polygon();
		_waypoint.addPoint(0,3);
		_waypoint.addPoint(3,0);
		_waypoint.addPoint(3,6);
		_waypoint.addPoint(3,3);
		_waypoint.addPoint(0,3);
		
	    _shape = _waypoint;   
	}
	
	public Shape GetShape() 
	{
		GenerateShape();
		return _shape;
	}
	
	public objWaypoint()
	{
		SetType(objType.Waypoint);
		GenerateShape();
	}
}
